package com.yuexunit.mobilenurse.module.BloodManage.Api;

import com.yuexunit.mobilenurse.module.BloodManage.bean.BloodBagDataBean;
import com.yuexunit.mobilenurse.module.BloodManage.bean.BloodDataBean;
import com.yuexunit.mobilenurse.module.BloodManage.bean.CheckDataBean;
import com.yuexunit.mobilenurse.module.BloodManage.bean.SingleBloodBag;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by work-jx on 2017/10/24.
 */
public interface BloodApplyApi {
    @FormUrlEncoded
    @POST("inquireBloodPageList.json?")
    Observable<BloodDataBean> getBloodList(@FieldMap Map<String, String> praise);

    @FormUrlEncoded
    @POST("inquireBloodByRequireNo.json?")
    Observable<BloodBagDataBean> getBloodBagList(@FieldMap Map<String, String> praise);

    @FormUrlEncoded
    @POST("checkBlood.json?")
    Observable<CheckDataBean> checkBlood(@FieldMap Map<String, String> praise);

    @FormUrlEncoded
    @POST("beginBlood.json?")
    Observable<CheckDataBean> beginBlood(@FieldMap Map<String, String> praise);

    @FormUrlEncoded
    @POST("beginConfirmBlood.json?")
    Observable<CheckDataBean> beginConfirmBlood(@FieldMap Map<String, String> praise);

    @FormUrlEncoded
    @POST("finishBlood.json?")
    Observable<CheckDataBean> finishBlood(@FieldMap Map<String, String> praise);

    @FormUrlEncoded
    @POST("finishConfirmBlood.json?")
    Observable<CheckDataBean> finishConfirmBlood(@FieldMap Map<String, String> praise);

    @FormUrlEncoded
    @POST("receiveBlood.json?")
    Observable<CheckDataBean> receiveBlood(@FieldMap Map<String, String> praise);


    @FormUrlEncoded
    @POST("receiveBloodBag.json?")
    Observable<CheckDataBean> receiveBloodBag(@FieldMap Map<String, String> praise);

    @FormUrlEncoded
    @POST("scanBloodBagByBagNo.json?")
    Observable<SingleBloodBag> scanBloodBag(@FieldMap Map<String, String> praise);

    @FormUrlEncoded
    @POST("cancleBloodBag.json?")
    Observable<CheckDataBean> cancle(@FieldMap Map<String, String> praise);
}
